package com.ctshk.sapp.order.tour.controller;

import com.ctshk.common.annotations.OperationLogAnnotation;
import com.ctshk.common.dto.Result;
import com.ctshk.common.enums.OperationLogModel;
import com.ctshk.common.enums.OperationLogType;
import com.ctshk.common.web.support.BaseController;
import com.ctshk.rpc.order.tour.req.SeriesOrderTouristFeeAdjustAddBatchReq;
import com.ctshk.rpc.order.tour.req.SeriesOrderTouristFeeAdjustAddReq;
import com.ctshk.rpc.order.tour.service.ISeriesOrderTouristFeeAdjustService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import javax.validation.Valid;

import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  系列团游客其他费用 前端控制器
 * </p>
 *
 * @author 谭响
 * @since 2021-01-22
 */
//@Api(value="调整费用", tags="调整费用")
@RestController
@RequestMapping("/series/order/tourist/fee/adjust")
public class SeriesOrderTouristFeeAdjustController extends BaseController {

    @DubboReference
    private ISeriesOrderTouristFeeAdjustService iSeriesOrderTouristFeeAdjustService;

    /*@ApiOperation(value = "添加", notes = "添加（收款管理-調整項目）废弃")
    @OperationLogAnnotation(operModul = OperationLogModel.ORDER, operType = OperationLogType.ADD, operTitle = "收款管理-調整項目", operDesc = "收款管理-調整項目")
    @PostMapping("/add")
    public Result add(@RequestBody SeriesOrderTouristFeeAdjustAddReq req) {
        req.setUserId(getCurrentUser(getRequest()).getId());
        return iSeriesOrderTouristFeeAdjustService.add(req);
    }

    @ApiOperation(value = "添加批量", notes = "添加批量（收款管理-調整項目）")
    @OperationLogAnnotation(operModul = OperationLogModel.ORDER, operType = OperationLogType.ADD, operTitle = "收款管理-調整項目", operDesc = "收款管理-調整項目")
    @PostMapping("/add/batch")
    public Result addBatch(@RequestBody SeriesOrderTouristFeeAdjustAddBatchReq req) {
        req.setUserId(getCurrentUser(getRequest()).getId());
        return iSeriesOrderTouristFeeAdjustService.addBatch(req);
    }*/

}
